package com.github.common.enums.impl;

import lombok.AllArgsConstructor;
import lombok.Getter;
import com.github.common.enums.common.CodedEnum;

@Getter
@AllArgsConstructor
public enum ClusterRoleEnum implements CodedEnum<Integer> {

    UNKNOWN(0, "unknown"),
    MASTER(1, "master"),
    MASTER_BACKUP(2, "master_backup"),
    SLAVE(3, "slave")
    ;

    private Integer code;
    private String desc;
}
